I have a string variable EXEC_MODE that is defined in an include file. When running in batch mode, I want to assign |
Re: Batch Mode
I'm guessing that when ever some other routine DXL runs it will get interpret errors because EXEC_MODE isn't defined for THAT dxl. That's easy enough to find out. // Control program does this: User uCurr = find() // My user handle set(uCurr, "Execute_Mode", "Maintenance") // Subordinate scripts do this:' User uCurr = find() string Mode = get(uCurr, "Execute_Mode") if (Mode == "") then I am out of control elseif(Mode == "Maintenance") then whatever elseif(Mode == "Report") then whatever
|
Re: Batch Mode
Did you consider using isBatch to actually check if you are running in batch mode instead of setting a variable? Why not include the checks in each script using an include file and a function:
if (am_I_in_maintenance_mode() == true ) { ... } else { ... }
doors.exe -cli "int whoo=4"
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: Batch Mode Mathias Mamsch - Thu Apr 28 08:51:59 EDT 2011
Did you consider using isBatch to actually check if you are running in batch mode instead of setting a variable? Why not include the checks in each script using an include file and a function:
if (am_I_in_maintenance_mode() == true ) { ... } else { ... }
doors.exe -cli "int whoo=4"
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|